package mapper;


import org.apache.ibatis.annotations.Param;
import pojo.Collectiona;
import pojo.Follow;

import java.util.List;

public interface CollectionMapper {
    int insert(Collectiona collection);

    int delete(int collectionid);

    //查询是否已被收藏
    Collectiona getIsCollection(@Param("userid") String userid,
                              @Param("blogid") String blogid);

    List<Collectiona> getCollectbyid(String userid);
}
